/**
 * Created by QiHan Wang on 2017/5/27.
 * 基础常量及项目所环境配置
 */

// 不同环境下采用不同参数
let configEvn = {};
if (process.env.APP_TYPE === `development`) {
  configEvn = {
    api: `https://apitest.ucuxin.com`,
    url: 'http://htest.ucuxin.com',
    gdtvUrl: 'http://gdtvtest.ucuxin.com',
    appId: 1042,
    appsecret: 'e73770f1445c420dbd429f6a38c255c2',
  };
}

if (process.env.APP_TYPE === `production`) {
  configEvn = {
    api: `https://api.ucuxin.com`,
    url: 'http://h.ucuxin.com',
    gdtvUrl: 'http://gdtv.ucuxin.com',
    appId: 1042,
    appsecret: 'e73770f1445c420dbd429f6a38c255c2',
  };
}

const config = {
  version: '1.0.1',
  wx_appId: 'wwde33498d5402c8b3',
  workwechatappid: 1,
  ...configEvn,
};

export default config;
